package package004.section002

import fundation.gsonPrintln
import org.junit.Test

/**
 * @author futao
 * Created on 2017/11/16 - 16:54.
 */
class TestClass002 {
    @Test(timeout = 1000)
    fun testCase001() {
        Like("11", 123, "asdas")
        Like.say()
        Like.say2()
    }

    @Test
    fun testCase003() {

    }


}

class Like {
    lateinit var name: String
    var age: Int
    lateinit var address: String

    constructor(name: String, age: Int, address: String) {
        this.name = name
        this.age = age
        this.address = address
    }

    companion object {
        @JvmStatic
        @Deprecated(message = "该方法已过时，请根据提示使用最新的version", replaceWith = ReplaceWith("say2()", "nnnnn"), level = DeprecationLevel.WARNING)
        fun say() {
            gsonPrintln("成功加载")
        }

        @JvmStatic
        fun say2() {
            gsonPrintln("我也被加载了")
        }
    }

}